package org.misty.seckill.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
@Alias("order")
public class Order {
  @JsonSerialize(using = ToStringSerializer.class)
  private long id;
  private long userId;
  private long goodsId;
  private long addrId;
  private String name;
  private int count;
  private BigDecimal price;
  private int channel;
  private int status;
  private Date createDate;
  private Date payDate;
}
